package com.gsafety.wellsfort.service.security;

import com.gsafety.wellsfort.common.util.ApiResponse;
import com.gsafety.wellsfort.domain.dto.secuirty.AdminDto;
import com.gsafety.wellsfort.domain.model.security.Admin;
import com.gsafety.wellsfort.domain.model.security.Role;
import com.gsafety.wellsfort.domain.vo.AdminQueryVO;
import com.gsafety.wellsfort.domain.vo.AdminResultVO;
import com.gsafety.wellsfort.domain.vo.AdminVO;

import java.util.List;

public interface IAdminService {
    Admin getByLoginId(Integer loginId);

    ApiResponse add(AdminDto adminDto);


    boolean update(AdminDto adminDto);


    boolean delete(Integer adminId);

    /**
     * 分页查询
     *
     * @param query 查询参数
     * @return
     */
    ApiResponse<List<Admin>> pageQuery(AdminQueryVO query);

    ApiResponse<List<AdminResultVO>> convertDo2VO(ApiResponse<List<Admin>> apiResponse);

    Admin get(Integer id);
}
